package com.ccrfid.rmc6.entity.business.patrol;

import javax.persistence.*;

@Entity
@Table(name = "patrol_location")
public class PatrolLocationEntity {
    private Long locationId;
    private String locationName;
    private Integer minPatrolTime;

    @Id
    @Column(name = "location_id", nullable = false)
    public Long getLocationId() {
        return locationId;
    }

    public void setLocationId(Long locationId) {
        this.locationId = locationId;
    }

    @Basic
    @Column(name = "location_name", length = 45, nullable = false)
    public String getLocationName() {
        return locationName;
    }

    public void setLocationName(String locationName) {
        this.locationName = locationName;
    }

    @Basic
    @Column(name = "min_patrol_time", nullable = false)
    public Integer getMinPatrolTime() {
        return minPatrolTime;
    }

    public void setMinPatrolTime(Integer minPatrolTime) {
        this.minPatrolTime = minPatrolTime;
    }
}
